package org.blueoxygen.kukuruyuk.actions;



import org.blueoxygen.kukuruyuk.actions.PurchaseOrderForm;
import org.blueoxygen.kukuruyuk.entity.PurchaseOrder;
public class DeletePurchaseOrder extends PurchaseOrderForm {
public String execute(){
if(getPurchaseOrder().getId() != null &&
!"".equalsIgnoreCase(getPurchaseOrder().getId())){
setPurchaseOrder((PurchaseOrder) manager.getById(PurchaseOrder.class, getPurchaseOrder().getId()));
manager.remove(getPurchaseOrder());
}
return SUCCESS;
}
}